const Layout = () => import('@/layout/index.vue');

const headwearRouter = {
  path: '/headwear',
  component: Layout,
  meta: {
    alwaysShow: true,
    title: '头饰管理',
    icon: 'star',
    roles: ['admin', 'editor']
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/headwear/index.vue'),
      name: 'HeadwearList',
      meta: {
        title: '头饰列表',
        icon: 'list',
        roles: ['admin']
      }
    },
    {
      path: 'create',
      component: () => import('@/views/headwear/create.vue'),
      name: 'HeadwearCreate',
      meta: {
        title: '新增头饰',
        icon: 'add',
        roles: ['admin'],
        hidden: true
      }
    },
    {
      path: 'edit/:id',
      component: () => import('@/views/headwear/create.vue'),
      name: 'HeadwearEdit',
      meta: {
        title: '编辑头饰',
        icon: 'edit',
        roles: ['admin'],
        hidden: true
      }
    }
  ]
};

export default headwearRouter;
